package com.bub.pay.api.entity.vo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class MerTestPayVo {
    private Long merId;
    private String orderIp;
    @NotBlank(message = "回调地址不能为空")
    private String notifyUrl;
    @NotBlank(message = "金额不能为空")
    @Min(value = 1, message = "金额不能小于1")
    @Max(value = 999999999, message = "金额不能大于999999999")
    @Pattern(regexp="^\\d+(\\.\\d{1,2})?$",message ="金额最多2位小数")
    private String amount;
    @NotBlank(message = "银行ID不能为空")
    private String id;
    private String bankCode;


}
